/**
 * Project Name:mauto-web
 * File Name:JyOrderServiceImpl.java
 * Package Name:com.inftech.mauto.jy.service.impl
 * Date:2017年6月19日上午10:15:00
 * Copyright (c) 2017, inf-technology Co., Ltd. All Rights Reserved.
 *
*/

package com.inftech.mauto.jy.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.inftech.mauto.jy.dao.JyOrderDao;
import com.inftech.mauto.jy.entity.JyOrder;
import com.inftech.mauto.jy.service.JyOrderService;

/**
 * ClassName:JyOrderServiceImpl <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Date: 2017年6月19日 上午10:15:00 <br/>
 * 
 * @author Administrator
 * @version
 * @since JDK 1.7
 */
@Service
public class JyOrderServiceImpl implements JyOrderService {
	@Resource(name = "jyOrderDao")
	private JyOrderDao jyOrderDao;

	/**
	 * 
	 * TODO 获取订单列表,获取status 0（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#queryOrderList(java.util.Map)
	 */
	@Override
	public List<JyOrder> queryOrderList(Map<String, Object> map) {
		return jyOrderDao.queryOrderList(map);
	}

	/**
	 * 
	 * TODO 获取订单总数（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#queryOrderCount(java.util.Map)
	 */
	@Override
	public int queryOrderCount(Map<String, Object> map) {
		return jyOrderDao.queryOrderCount(map);
	}

	/**
	 * 
	 * TODO 获取订单列表,获取status 1（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#queryOrderList1(java.util.Map)
	 */
	@Override
	public List<JyOrder> queryOrderList1(Map<String, Object> map) {
		return jyOrderDao.queryOrderList1(map);
	}

	/**
	 * 
	 * TODO 根据订单号搜索订单列表（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#searchOrderList(java.util.Map)
	 */
	@Override
	public List<JyOrder> searchOrderList(Map<String, Object> map) {
		return jyOrderDao.searchOrderList(map);
	}

	/**
	 * 
	 * TODO 根据订单号获取订单详情（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getOrderDetail(java.util.Map)
	 */
	@Override
	public JyOrder getOrderDetail(Map<String, Object> map) {
		return jyOrderDao.getOrderDetail(map);
	}

	/**
	 * 
	 * TODO 根据订单号加载车辆信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getCarDetail(java.util.Map)
	 */
	@Override
	public JyOrder getCarDetail(Map<String, Object> map) {
		return jyOrderDao.getCarDetail(map);
	}

	/**
	 * 
	 * TODO 根据订单号保存车辆信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#saveCarDetail(java.util.Map)
	 */
	@Override
	public int saveCarDetail(Map<String, Object> map) {
		return jyOrderDao.saveCarDetail(map);
	}

	/**
	 *
	 * TODO 根据订单号获取维修项目详情（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getWxxmDetail(java.util.Map)
	 */
	@Override
	public List<Map<String, Object>> getWxxmDetail(Map<String, Object> map) {
		return jyOrderDao.getWxxmDetail(map);
	}

	/**
	 * 
	 * TODO 获取所有的套餐列表（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getTcList()
	 */
	@Override
	public List<Map<String, Object>> getTcList() {
		return jyOrderDao.getTcList();
	}

	/**
	 * 
	 * TODO 获取所有的项目列表（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getXmList()
	 */
	@Override
	public List<Map<String, Object>> getXmList() {
		return jyOrderDao.getXmList();
	}

	/**
	 * 
	 * TODO 获取所有的配件列表（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getPjList()
	 */
	@Override
	public List<Map<String, Object>> getPjList() {
		return jyOrderDao.getPjList();
	}

	/**
	 * 
	 * TODO 根据订单号删除套餐信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateOrderTc(java.util.Map)
	 */
	@Override
	public int updateOrderTc(Map<String, Object> map) {
		return jyOrderDao.updateOrderTc(map);
	}

	/**
	 * 
	 * TODO 根据订单号删除项目信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateOrderWxxm(java.util.Map)
	 */
	@Override
	public int updateOrderWxxm(Map<String, Object> map) {
		return jyOrderDao.updateOrderWxxm(map);
	}

	/**
	 * 
	 * TODO 根据订单号删除配件信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateOrderPj(java.util.Map)
	 */
	@Override
	public int updateOrderPj(Map<String, Object> map) {
		return jyOrderDao.updateOrderPj(map);
	}

	/**
	 * 
	 * TODO 根据订单号获取订单id（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getOrderIdByOrderCode(java.lang.String)
	 */
	@Override
	public Integer getOrderIdByOrderCode(String orderCode) {
		return jyOrderDao.getOrderIdByOrderCode(orderCode);
	}

	/**
	 * 
	 * TODO 插入项目套餐信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#insertJyOrderTc(java.util.Map)
	 */
	@Override
	public void insertJyOrderTc(Map<Object, Object> map) {
		jyOrderDao.insertJyOrderTc(map);
	}

	/**
	 * 
	 * TODO 插入项目项目信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#insertJyOrderWxxm(java.util.Map)
	 */
	@Override
	public void insertJyOrderWxxm(Map<Object, Object> map) {
		jyOrderDao.insertJyOrderWxxm(map);
	}

	/**
	 * 
	 * TODO 插入项目配件信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#insertJyOrderPj(java.util.Map)
	 */
	@Override
	public void insertJyOrderPj(Map<Object, Object> map) {
		jyOrderDao.insertJyOrderPj(map);
	}

	/**
	 * 
	 * TODO 将orderId 和 tcId 插入 jy_order_wxxm （可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#insertJyOrderWxxmWithTcId(java.util.Map)
	 */
	@Override
	public void insertJyOrderWxxmWithTcId(Map<Object, Object> map) {
		jyOrderDao.insertJyOrderWxxmWithTcId(map);
	}

	/**
	 * 
	 * TODO 获取所有的订定报表信息 bgxm_step = 1（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getAllBgxm()
	 */
	@Override
	public List<Map<String, Object>> getAllBgxm() {
		return jyOrderDao.getAllBgxm();
	}

	/**
	 * 
	 * TODO 获取所有的订定报表信息 bgxm_step = 2（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getAllBgxm2()
	 */
	@Override
	public List<Map<String, Object>> getAllBgxm2() {
		return jyOrderDao.getAllBgxm2();
	}

	/**
	 * 
	 * TODO 更新维养开始时间 （开始录像）（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateWyStartTime(java.util.Map)
	 */
	@Override
	public int updateWyStartTime(Map<String, Object> map) {
		return jyOrderDao.updateWyStartTime(map);
	}

	/**
	 * 
	 * TODO 更新维养结束时间 （结束录像）（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateWyEndTime(java.util.Map)
	 */
	@Override
	public int updateWyEndTime(Map<String, Object> map) {
		return jyOrderDao.updateWyEndTime(map);
	}

	/**
	 * 
	 * TODO 插入维养报表信息（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#insertJyOrderwxbg(java.util.Map)
	 */
	@Override
	public void insertJyOrderwxbg(Map<String, Object> map) {
		jyOrderDao.insertJyOrderwxbg(map);
	}

	/**
	 * 
	 * TODO 获取维修图片（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getWxpic(java.lang.String)
	 */
	@Override
	public List<Map<String, Object>> getWxpic(String orderCode) {
		return jyOrderDao.getWxpic(orderCode);
	}

	/**
	 * 
	 * TODO 插入维修图片（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#insertJyBasePic(java.util.Map)
	 */
	@Override
	public void insertJyBasePic(Map<String, Object> map) {
		jyOrderDao.insertJyBasePic(map);
	}

	/**
	 * 
	 * TODO 根据orderCode获取套餐列表（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getTcListByOrderCode(java.lang.String)
	 */
	@Override
	public List<Map<String, Object>> getTcListByOrderCode(String orderCode) {
		return jyOrderDao.getTcListByOrderCode(orderCode);
	}

	/**
	 * 
	 * TODO 根据orderCode获取套餐列表（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getXmListByOrderCode(java.lang.String)
	 */
	@Override
	public List<Map<String, Object>> getXmListByOrderCode(String orderCode) {
		return jyOrderDao.getXmListByOrderCode(orderCode);
	}

	/**
	 * 
	 * TODO 根据项目名字获取维修项目价格（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getWxxmPrice(java.lang.String)
	 */
	@Override
	public String getWxxmPrice(String name) {
		return jyOrderDao.getWxxmPrice(name);
	}

	/**
	 * 
	 * TODO 获取订单金额（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getOrderHjByOrderCode(java.lang.String)
	 */
	@Override
	public String getOrderHjByOrderCode(String orderCode) {
		return jyOrderDao.getOrderHjByOrderCode(orderCode);
	}

	/**
	 * 
	 * TODO 获取订单优惠价格（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getOrderYhPrice(java.lang.String)
	 */
	@Override
	public String getOrderYhPrice(String orderCode) {
		return jyOrderDao.getOrderYhPrice(orderCode);
	}

	/**
	 * 
	 * TODO 获取优惠券价格（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#getCouponPrice(java.lang.String)
	 */
	@Override
	public String getCouponPrice(String couponCode) {
		return jyOrderDao.getCouponPrice(couponCode);
	}

	/**
	 * 
	 * TODO 跟新订单支付信息 savePay（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateOrderByPay(java.util.Map)
	 */
	@Override
	public int updateOrderByPay(Map<String, Object> map) {
		return jyOrderDao.updateOrderByPay(map);
	}

	/**
	 * 
	 * TODO 更新优惠券状态（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateCouponByCouponCode(java.lang.String)
	 */
	@Override
	public int updateCouponByCouponCode(Map<String, Object> map) {
		return jyOrderDao.updateCouponByCouponCode(map);
	}

	/**
	 * 
	 * TODO 更新订单完成时间 技师完成js_finished（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updateJSFinish(java.lang.String)
	 */
	@Override
	public int updateJSFinish(String orderCode) {
		return jyOrderDao.updateJSFinish(orderCode);
	}

	/**
	 * 
	 * TODO 更新订单金额和优惠金额（可选）.
	 * 
	 * @see com.inftech.mauto.jy.service.JyOrderService#updatePrice(java.util.Map)
	 */
	@Override
	public int updatePrice(Map<String, Object> map) {
		return jyOrderDao.updatePrice(map);
	}

	@Override
	public void insertOrder(Map<String, Object> map) {
		jyOrderDao.insertOrder(map);
	}

	@Override
	public JyOrder getOrderByOrderCode(String orderCode) {
		return jyOrderDao.getOrderByOrderCode(orderCode);
	}

	@Override
	public int updateCancelByOrderCode(Map<String, Object> map) {
		return jyOrderDao.updateCancelByOrderCode(map);
	}

	@Override
	public List<Map<String, Object>> getJcbgDetail(String orderCode) {
		return jyOrderDao.getJcbgDetail(orderCode);
	}

	@Override
	public List<Map<String, Object>> getOrderListByPeopleId(Map<String, Object> map) {
		return jyOrderDao.getOrderListByPeopleId(map);
	}

	@Override
	public List<Map<String, Object>> getPJXXByPJLB(String pPLB) {
		return jyOrderDao.getPJXXByPJLB(pPLB);
	}

	@Override
	public int getOrderCountByPeopleId(Map<String, Object> map) {
		return jyOrderDao.getOrderCountByPeopleId(map);
	}

	@Override
	public int updatePayStatusByOrderCode(Map<String, Object> map) {
		return jyOrderDao.updatePayStatusByOrderCode(map);
	}

	@Override
	public String getPayStatusByOrderCode(String orderCode) {
		return jyOrderDao.getPayStatusByOrderCode(orderCode);
	}

}
